/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';

// 统一检索 - 模糊匹配
export function getUnifiedSearchData(data) {
  return request({
    url: '/isfd/dataRetrieval/search/range',
    method: 'post',
    data
  });
}

// 统一检索 - 精确匹配
export function getUnifiedExactSearchData(data) {
  return request({
    url: '/isfd/dataRetrieval/search/exact',
    method: 'post',
    data
  });
}

// 模型数据删除
export function deleteModelData(data) {
  return request({
    url: '/isfd/dataRetrieval/delete/modelData',
    method: 'post',
    data
  });
}

// 检索历史结果查询
export function getHistorySearchRes(data) {
  return request({
    url: '/isfd/dataRetrieval/history/list',
    method: 'post',
    data
  });
}

// 检索历史删除
export function deleteHistorySearchRes(id) {
  return request({
    url: `/isfd/dataRetrieval/history/delete/${id}`,
    method: 'delete'
  });
}

// 检索结果查询
export function getUnifiedSearchResult(data) {
  return request({
    url: `/isfd/dataRetrieval/view`,
    method: 'post',
    data
  });
}

